﻿using Microsoft.AspNetCore.Mvc;
using STF.Blog.IService;

namespace STF.Blog.WebApp.Areas.ForumManage.Controllers
{
    [Area("ForumManage")]
    public class BlogCateGoryController : Controller
    {
        private IBlogCateGoryService _ibcSvc;
        private IBlogService _blogSvc;
        public BlogCateGoryController(IBlogCateGoryService ibcSvc, IBlogService blogSvc)
        {
            _blogSvc = blogSvc;
            _ibcSvc = ibcSvc;
        }

        [HttpGet]
        public async Task<IActionResult> Index(string search, int page = 1)
        {
            search = string.IsNullOrEmpty(search) ? "" : search;
            var data = await _ibcSvc.GetAllBlogCateGoryAsync();
            //var dataList = 
            return View();
        }
    }
}
